import { Column, PrimaryGeneratedColumn } from "typeorm";
import { EntityModel } from "@midwayjs/orm";

@EntityModel("s_user", { schema: "lspbip_dev" })
export class SUser {
  @PrimaryGeneratedColumn({ type: "int", name: "USERID" })
  USERID: number;

  @Column("varchar", { name: "MAILBOX", nullable: true, length: 255 })
  MAILBOX: string | null;

  @Column("varchar", { name: "NICKNAME", nullable: true, length: 255 })
  NICKNAME: string | null;

  @Column("varchar", { name: "PASSWORD", nullable: true, length: 255 })
  PASSWORD: string | null;

  @Column("varchar", { name: "PHONE", nullable: true, length: 255 })
  PHONE: string | null;

  @Column("varchar", { name: "REALNAME", nullable: true, length: 255 })
  REALNAME: string | null;

  @Column("varchar", { name: "DEPTID", nullable: true, length: 20 })
  DEPTID: string | null;

  @Column("date", { name: "UPDATED", nullable: true })
  UPDATED: string | null;

  @Column("varchar", { name: "JOBID", nullable: true, length: 20 })
  JOBID: string | null;

  @Column("varchar", { name: "STATE", nullable: true, length: 1 })
  STATE: string | null;
}
